﻿<?xml version="1.0" encoding="utf-8" ?>
<codex>
  <header>
    <name>Codex Space Marines 5th Edition</name>
    <version>1</version>
    <author>Richyp,Chenghiz,Logan</author>
    <dataPath></dataPath>
    <gameSystem>Warhammer 40k</gameSystem>
    <specialRules>
      <specialRule>
        <name>And they shall know no fear</name>
        <description>Space Marines automatically pass tests to regroup, and can take such tests even if the squad has been reduced to less than half strength by casualties, though all other criteria apply. Usually troops that regroup cannot move normally and always count as moving whether they do or not, but these restrictions do not apply to models subject to this special rule. If Space Marines are caught by a sweeping advance, they are not destroyed and will instead continue to fight normally. If this happens then the unit is subject to the No Retreat! rule in this round of close combat and might suffer additional casualties.

Units which include Servitors are still subject to this rule, providing that the unit contains at least one Space Marine.
        </description>
      </specialRule>
      <specialRule>
        <name>Combat Tactics</name>
        <description>Roboute Guilliman favoured a balanced approach to battle, pulling together units with different roles to form an army far more effective than the sum of its parts. If Guilliman was conservative in his selection of military assets, he was calculating in their disposal. Not for him the futile stand against unconquerable odds, or a bloody victory to no purpose. Guilliman knew when to stand, when to withdraw and when to strike with every weapon at his command.

Though many thousands of years old, Gulliman's tenets of warfare remain as potent today as they did when the Horus Heresy raged across the galaxy. His fluid and flexible battle stance is still employed by the vast majority of Space Marine chapters today.

A Space Marine unit with this special rule can choose to automatically fail any Moral check it is called upon to take, unless it is Fearless.
        </description>
      </specialRule>
      <specialRule>
        <name>Combat Squad</name>
        <description>A number of ten-man units in the Space Marines army have the option of breaking down into two five-man units, called combat squads. This option is clearly specified in the unit's entry. For example, a ten-man Sternguard Veterans squad can either fight as a ten-man unit or break down into two five-man combat squads.

The units that can be split into combat squads are:
Vanguard Veteran squads
Sternguard Veteran squads
Scout squads
Scout Bike squads
Tactical squads
Assault squads
Terminator squads
Assault Terminator squads
Space Marine Bike squads
Devastator squads

The decision to split the unit into combat squads, as well as which models go into each combat squad, must be made when the unit is deployed. Both combat squads can be deployed in separate locations. The one exception to this is a unit that arrives by Drop Pod. The player can choose to split such a unit into combat squads when it disembarks from the Drop Pod.

If you decide to split a unit into combat squads, then each combat squad is treated as a separate unit for all purposes from that point.
        </description>
      </specialRule>
    </specialRules>
  </header>
  <body>
    <wargear>
      <include>equipment.xml</include>
      <include>character_wargear.xml</include>
      <include>vehicle_upgrades.xml</include>
      <include>ranged_weapons.xml</include>
      <include>close_combat_weapons.xml</include>
      <include>wargear_groups.xml</include>
    </wargear>
    <list>
      <baseUnits>
        <baseUnit>
          <id>1</id>
          <name>Space Marine</name>
          <attributes>
            <ws>4</ws>
            <bs>4</bs>
            <s>4</s>
            <t>4</t>
            <w>1</w>
            <i>4</i>
            <a>1</a>
            <ld>8</ld>
            <sv>3</sv>
          </attributes>
        </baseUnit>
        <baseUnit>
          <id>2</id>
          <name>Dreadnought</name>
          <attributes>
            <ws>4</ws>
            <bs>4</bs>
            <s>6</s>
            <fa>12</fa>
            <sa>12</sa>
            <ra>10</ra>
            <i>4</i>
            <a>2</a>
          </attributes>
        </baseUnit>
        <baseUnit>
          <id>3</id>
          <name>Vehicle</name>
          <attributes>
            <bs>4</bs>
            <fa>10</fa>
            <sa>10</sa>
            <ra>10</ra>
          </attributes>
        </baseUnit>
        <baseUnit>
          <id>4</id>
          <name>Land Raider</name>
          <attributes>
            <bs>4</bs>
            <fa>14</fa>
            <sa>14</sa>
            <ra>14</ra>
          </attributes>
        </baseUnit>
        <baseUnit>
          <id>5</id>
          <name>Space Marine Scout</name>
          <attributes>
            <ws>3</ws>
            <bs>3</bs>
            <s>4</s>
            <t>4</t>
            <w>1</w>
            <i>4</i>
            <a>1</a>
            <ld>8</ld>
            <sv>4</sv>
          </attributes>
        </baseUnit>
        <baseUnit>
          <id>6</id>
          <name>Dreadnought</name>
          <attributes>
            <bs>4</bs>
            <fa>12</fa>
            <sa>12</sa>
            <ra>10</ra>
            <i>4</i>
            <a>2</a>
          </attributes>
        </baseUnit>
      </baseUnits>
      <transports>
        <include>units_transports.xml</include>
      </transports>
      <units>
        <include>units_special_characters.xml</include>
        <include>units_hq.xml</include>        
        <include>units_elite.xml</include>
        <include>units_troops.xml</include>
        <include>units_fast_attack.xml</include>
        <include>units_heavy_support.xml</include>
        <!--<include>data/codex/codex space marines 5th edition/units_hq.xml</include>
        <include>data/codex/codex space marines 5th edition/units_special_characters.xml</include>
        <include>data/codex/codex space marines 5th edition/units_elite.xml</include>
        <include>data/codex/codex space marines 5th edition/units_troops.xml</include>
        <include>data/codex/codex space marines 5th edition/units_fast_attack.xml</include>
        <include>data/codex/codex space marines 5th edition/units_heavy_support.xml</include>-->
      </units>
    </list>
  </body>
</codex>